package com.axxy.factory;

import com.axxy.factory.entity.Keyboard;
import com.axxy.factory.entity.Mouse;

/**
 * @author 一缕茜阳
 * @date 2021/7/28
 */
public abstract class ChinaDigitFactory implements DigitFactory{
    @Override
    public Mouse makeMouse() {
        return createMouse();
    }

    @Override
    public Keyboard makeKeyBoard(){
        Keyboard keyboard =  createKeyboard();
        packageKyeboard(keyboard);
        return keyboard;
    }

    abstract Mouse createMouse();

    abstract Keyboard createKeyboard();

    abstract void packageKyeboard(Keyboard keyboard);
}
